package com.bitgate.util.soapservices;

import com.bitgate.util.soap.Publishable;
import com.bitgate.util.soap.Soap;

import static com.bitgate.util.debug.Debug.debug;
import static com.bitgate.util.debug.Debug.isDebugEnabled;

@Soap(
	requireSession=false,
	entryPoint="/soapTest/",
	documentation="Tests xsd:string type, both standard and array types."
)
public class StringTest
{
	@Publishable(
		documentation="Tests a single instance of s:string."
	)
	public String test(String input) {
		if (isDebugEnabled()) {
			debug("SOAP request: 'test' function: input='" + input + "'");
		}
		
		return "Input=" + input;
	}
	
	@Publishable(
		documentation="Tests an array of s:string."	
	)
	public String[] testArray(String[] array) {
		if (isDebugEnabled()) {
			debug("SOAP request: 'testArray' function: input='" + array + "'");
		}
		
		return array;
	}
}